package org.example.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.apache.ibatis.annotations.Param;
import org.example.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 * yonghu Mapper 接口
 * </p>
 *
 * @author author
 * @since 2024-05-27
 */
public interface UserMapper extends BaseMapper<User> {

    /**
     * 根据ID 更新余额
     * @param wrapper
     * @param amount
     */
    void updateBalanceByIds(@Param("ew") QueryWrapper<User> wrapper,@Param("amount") int amount);
}
